package utils.dblp;
import java.io.IOException;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;



public class EjemploJSoup {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Document doc;
		try {
			String url = "http://www.sciencedirect.com/science?_ob=ArticleListURL&_method=list&_ArticleListID=-570483643&_sort=r&_st=13&view=c&_acct=C000228598&_version=1&_urlVersion=0&_userid=13128079&md5=d49da07af808d3915d8d393940003cb4&searchtype=a";
			url = "http://www.sciencedirect.com/science/article/pii/S0164121207002208";
			
			Connection c = Jsoup.connect(url).userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36");
			c.timeout(5000);
			doc = c.get(); 			
			//System.out.println(doc);
			Elements newsHeadlines = doc.select("div.abstract");
			
			System.out.println(newsHeadlines);
		} catch (IOException e) {
			e.printStackTrace();
		}
		

	}

}
